(_list)[0] = (_list)[_id]; \
(unsigned short)_id; })
-#define DEBUG 1
-
#ifdef DEBUG
static char *be_state_name[] = {
[BEST_CLOSED] = "closed",
{
struct netfront_info *np = netdev_priv(dev);
np->user_state = UST_CLOSED;
- netif_stop_queue(dev);
+ netif_stop_queue(np->netdev);
return 0;
}
DPRINTK("netfront_closing: %s removed\n", dev->nodename);
+ close_netdev(info);
+
xenbus_switch_state(dev, NULL, XenbusStateClosed);
}
INSTALL_PROG = $(INSTALL) -m0755
INSTALL_DIR = $(INSTALL) -d -m0755
-CFLAGS += -Wall -Werror -ggdb3 -O0
+CFLAGS += -Wall -Werror -g3
CFLAGS += -I $(XEN_LIBXC)
CFLAGS += -I $(XEN_XENSTORE)
dir=$(dirname "$0")
. "$dir/block-common.sh"
+case "$command" in
+ online | offline)
+ exit 0
+ ;;
+esac
+
expand_dev() {
local dev
case $1 in
findCommand "$@"
-if [ "$command" != "add" ] &&
+if [ "$command" != "online" ] &&
+ [ "$command" != "offline" ] &&
+ [ "$command" != "add" ] &&
[ "$command" != "remove" ]
then
log err "Invalid command: $command"
. "$dir/block-common.sh"
case "$command" in
- add)
+ bind)
for dev in /dev/nd*; do
if nbd-client $2:$3 $dev; then
write_dev $dev
done
exit 1
;;
- remove)
+ unbind)
nbd-client -d $2
exit 0
;;
. "$dir/block-common.sh"
case "$command" in
- add)
+ bind)
for dev in /dev/nbd*; do
if nbd-client $2 $3 $dev; then
write_dev $dev
done
exit 1
;;
- remove)
+ unbind)
nbd-client -d $2
exit 0
;;
# Specifying 'localhost' prevents remote connections.
# Specifying the empty string '' (the default) allows all connections.
#(xend-address '')
-#(xend-address localhost)
+(xend-address localhost)
# Address xend should listen on for relocation-socket connections, if
# xend-relocation-server is set.
# Define this to make it possible to run valgrind on code linked with these
# libraries.
-CFLAGS += -DVALGRIND # -O0 -ggdb3
+#CFLAGS += -DVALGRIND -O0 -ggdb3
# Get gcc to generate the dependencies for us.
CFLAGS += -Wp,-MD,.$(@F).d
#define _p(a) ((void *) (a))
-#if 0
printf("VIRTUAL MEMORY ARRANGEMENT:\n"
" Loaded kernel: %p->%p\n"
" Init. ramdisk: %p->%p\n"
_p(vstack_start), _p(vstack_end),
_p(dsi.v_start), _p(v_end));
printf(" ENTRY ADDRESS: %p\n", _p(dsi.v_kernentry));
-#endif
if ( ((v_end - dsi.v_start)>>PAGE_SHIFT) > nr_pages )
{
XEN_ROOT = "../.."
-extra_compile_args = [ "-fno-strict-aliasing", "-Wall", "-Werror", "-ggdb3", "-O0" ]
+extra_compile_args = [ "-fno-strict-aliasing", "-Wall", "-Werror" ]
include_dirs = [ XEN_ROOT + "/tools/libxc",
DEFAULT_BACKUP_COUNT = 5
STDERR_FORMAT = "[%(name)s] %(levelname)s (%(module)s:%(lineno)d) %(message)s"
-LOGFILE_FORMAT = "[%(asctime)s %(name)s %(thread)d] %(levelname)s (%(module)s:%(lineno)d) %(message)s"
+LOGFILE_FORMAT = "[%(asctime)s %(name)s] %(levelname)s (%(module)s:%(lineno)d) %(message)s"
DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
import os
import signal
import sys
-import thread
import threading
-import time
import linecache
import pwd
import re
pass
def print_trace(self, string):
- self.tracefile.write(time.strftime("%Y-%m-%d %H:%M:%S "))
- self.tracefile.write("%10x" % thread.get_ident())
for i in range(self.traceindent):
ch = " "
if (i % 5):
# Make gcc generate dependencies.
BASECFLAGS += -Wp,-MD,.$(@F).d
PROG_DEP = .*.d
-BASECFLAGS+= -O0 -ggdb3 $(PROFILE)
+BASECFLAGS+= -O3 $(PROFILE)
#BASECFLAGS+= -I$(XEN_ROOT)/tools
BASECFLAGS+= -I$(XEN_ROOT)/tools/libxc
BASECFLAGS+= -I.
HDRS = $(wildcard *.h)
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
-BIN = xentrace tbctl setsize xenctx
+BIN = xentrace tbctl setsize
SCRIPTS = xentrace_format
MAN1 = $(wildcard *.1)
MAN8 = $(wildcard *.8)
# If you change any of these configuration options then you must
# 'make clean' before rebuilding.
#
-verbose ?= y
-debug ?= y
+verbose ?= n
+debug ?= n
perfc ?= n
perfc_arrays?= n
domu_debug ?= n